-- 错误码
-- Author: Colocasia
-- Date: 2018-05-22

code_const = 
{
    -- 成功
    success                 = { opcode = 0,     text="LC_OPCODE_SUCCESS",                   description="操作成功",},


    -- 账号错误
    account_not_exist       = { opcode = 1001,  text="LC_OPCODE_ACCOUNT_NOT_EXIST",         description="账户不存在",},
    account_pwd_error       = { opcode = 1002,  text="LC_OPCODE_ACCOUNT_PWD_ERROR",         description="账户密码不正确",},
    account_has_exist       = { opcode = 1003,  text="LC_OPCODE_ACCOUNT_HAS_EXIST",         description="账户已经存在",},
    account_info_invalid    = { opcode = 1004,  text="LC_OPCODE_ACCOUNT_INFO_INVALID",      description="账户信息不正确",},
    account_token_overdue   = { opcode = 1004,  text="LC_OPCODE_ACCOUNT_TOKEN_OVERDUE",     description="账户登录信息过期",},

    -- 玩家错误
    
    -- 队伍错误
    team_not_exist          = { opcode = 4001,  text="LC_OPCODE_TEAM_NOT_EXIST",            description="队伍不存在",},
    team_is_full            = { opcode = 4002,  text="LC_OPCODE_TEAM_IS_FULL",              description="队伍已经满员",},
    team_already_in         = { opcode = 4003,  text="LC_OPCODE_TEAM_ALREADY_IN",           description="已经在该队伍中",},
    team_not_exist_player   = { opcode = 4004,  text="LC_OPCODE_TEAM_NOT_EXIST_PLAYER",     description="队伍不存在该玩家",},


    -- 特殊错误
    invalid_params          = { opcode = 99998, text="LC_OPCODE_INVALID_PARAMS",            description="参数错误",},
    unknow_error            = { opcode = 99999, text="LC_OPCODE_UNKNOW_ERROR",              description="未知错误",},
}

return code_const;
